package fei.yuzhi.com.loveflowers.fragment.mefragment.login.forgetPass;

import android.content.Context;

/**
 * Created by Administrator on 2016/10/7.
 */
public class ForgetPassPresenter implements ForgetPassContract.PresenterForgetPass{
    private ForgetPassContract.ModelForgetPass model;
    private ForgetPassContract.ViewForgetPass view;

    public ForgetPassPresenter(ForgetPassContract.ViewForgetPass view) {
        this.model=new ForgetPassModel();
        this.view=view;
    }

    @Override
    public void sendYanZhengMa(Context context,String tell) {
        model.sendYanZhengMa(context, tell, new ForgetPassModel.sendSituation() {
            @Override
            public void setSituation(String msg) {
                view.sendSituation(msg);

            }
        });
    }

    @Override
    public void userPass(Context context,String name,String pass,String tell) {
        model.userPass(context, name, pass, tell, new ForgetPassModel.sendRegister() {
            @Override
            public void setRegister(String msg) {
                view.onVerticalSucess(msg);
            }
        });

    }


}
